document.addEventListener('DOMContentLoaded', function() {
	const header = document.getElementById('header-wap');
	if (!header) {
		console.error('错误：未找到ID为header-wap的元素');
		return;
	}

	function handleScroll() {
		header.classList.toggle('scrolled', window.scrollY > 50);
	}


	handleScroll();

	// 添加滚动监听
	window.addEventListener('scroll', handleScroll);
});